Bookmark
Writing Testable Frontend Javascript Part 1 – Anti-patterns and their fixes | Shane Tomlinson
https://shanetomlinson.com/2013/testing-javascript-frontend-part-1-anti-patterns-and-fixes/, posted 2013 by peter in development howto javascript testing
This is the first of a two part introduction to writing testable Javascript UI code. The first article presents a basic sample application containing several common anti-patterns and their solutions.
In the second article, the application will be refactored using the described techniques, a simple XHR mock will be presented, and add a test suite will be added to help future developers maintain the code.